package com.eight.cloud.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eight.cloud.admin.entity.DeptEntity;
import com.eight.cloud.mybatisplus.mapper.SuperMapper;
import com.eight.cloud.openfeign.admin.vo.DeptVo;

import java.util.List;

/**
 * 部门表 Mapper 接口
 *
 * @InterfaceName: DeptMapper
 * @Author: TXC
 * @Date: 2024-10-14 10:24
 **/
public interface DeptMapper extends SuperMapper<DeptEntity> {

    /**
     * 查询部门及其子部门
     * @return 部门列表
     */
    List<DeptVo> getDeptAndChild();
}
